<?php

namespace app\apishop\controller;

use app\admin\model\patrol\Inspection;
use app\admin\model\shop\User;
use app\common\controller\Api;
use think\Config;
use think\Db;
use think\Exception;

/**
 * 首页接口
 */
class Index extends Api
{
    protected $noNeedLogin = [''];
    protected $noNeedRight = ['*'];
    protected $failException = true;


    public function _initialize()
    {
        parent::_initialize();
        $this->modelUser = new \app\admin\model\userstaff\User();
        $this->modelShop = new User();//商户
        $this->modelInspection = new Inspection();
        if (!Config::get('fastadmin.usercenter')) {
            $this->error(__('User center already closed'));
        }
    }




}
